set more 1

/*
File:	cepr_org_y2k.do
Date:	Feb 21, 2006
	    Feb 05, 2020, CEPR ORG Version 2.5
Desc:	Converts files from 2-digit to 4-digit year
*/

capture program drop y2kit
program define y2kit
version 5.0
while "`1'"~="" {
	local year=1900 + `1'
	_renamefile "$locin/morg`1'.dta" "$locin/morg`year'.dta"
	mac shift
}
end

y2kit 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93

/* 
Copyright 2020 CEPR and John Schmitt

This file is part of the cepr_org_master.do program. This file and all
programs referenced in it are free software. You can redistribute the
program or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
USA.
*/
